/*
 * @Author: 周鹏飞
 * @Date: 2021-07-06 10:08:58
 * @LastEditors: 周鹏飞
 * @LastEditTime: 2021-07-06 10:18:51
 * @Description: file content
 */
import request from '@/utils/request'

// 查询事件临时值班人员列表
export function listEventProvisionalPerson(query) {
  return request({
    url: '/event/eventProvisionalPerson/list',
    method: 'get',
    params: query
  })
}

// 查询事件临时值班人员详细
export function getEventProvisionalPerson(id) {
  return request({
    url: '/event/eventProvisionalPerson/' + id,
    method: 'get'
  })
}

// 新增事件临时值班人员
export function addEventProvisionalPerson(data) {
  return request({
    url: '/event/eventProvisionalPerson',
    method: 'post',
    data: data
  })
}

// 修改事件临时值班人员
export function updateEventProvisionalPerson(data) {
  return request({
    url: '/event/eventProvisionalPerson',
    method: 'put',
    data: data
  })
}

// 删除事件临时值班人员
export function delEventProvisionalPerson(id) {
  return request({
    url: '/event/eventProvisionalPerson/' + id,
    method: 'delete'
  })
}
